package com.jhxx.service.impl;

import com.jhxx.mapper.UserIntegralDao;
import com.jhxx.entity.UserIntegral;
import com.jhxx.service.UserIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author chengxu
 * Date  2019-12-09
 */
@Service
public class UserIntegralServiceImpl implements UserIntegralService {
    @Autowired
    private UserIntegralDao userIntegralDao;
    
    @Override
    public UserIntegral get(String id){
        return userIntegralDao.get(id);
    }
    
    @Override
    public List<UserIntegral> findList(UserIntegral userIntegral) {
        return userIntegralDao.findList(userIntegral);
    }
    
    @Override
    public List<UserIntegral> findAllList() {
        return userIntegralDao.findAllList();
    }
    
    @Override
    public int insert(UserIntegral userIntegral) {
        return userIntegralDao.insert(userIntegral);
    }
    
    @Override
    public int insertBatch(List<UserIntegral> userIntegrals){
        return userIntegralDao.insertBatch(userIntegrals);
    }
    
    @Override
    public int update(UserIntegral userIntegral) {
        return userIntegralDao.update(userIntegral);
    }
    
    @Override
    public int delete(UserIntegral userIntegral) {
        return userIntegralDao.delete(userIntegral);
    }

}
